/**
 * Created by WYH on 17/4/28.
 */
angular.module('rentCancelAuth', []).component(
    'rentCancelAuth',
    {
        templateUrl: 'component/rent/rentCancelAuth/rent_cancel_auth.template.html',
        controller: ['$scope', 'Api','Alert', function ($scope, Api,Alert) {

            $scope.submitRentCancelAuth = function (selectRent) {
                Api.setupRentLockAuth(selectRent.companyId, false, function (result) {
                    Alert.alertBox('取消授权成功',function () {
                       return window.location.reload();

                    });
                });
            }

        }]
    }
);